
#include "Base.h"
#include "OGLEffect.h"
#include "Graphics\Model\Model.h"
#include "OGLEffectPass.h"
#include "OGLShader.h"
#include "Assert.h"
#include "OGLMacro.h"
#include "Graphics\Effects\IEffectPass.h"

namespace CasaEngine
{

	/**
	 *
	 */
	COGLEffect::COGLEffect() :
		m_pShader(NULL)
	{
		
	}

	/**
	 *
	 */
	COGLEffect::~COGLEffect()
	{
	}

	/**
	 * 
	 */
	void COGLEffect::Begin()
	{
		
	}

	/**
	 * 
	 */
	void COGLEffect::End()
	{
		
	}

	/**
	 * Call this function with the right order
	 */	
	void COGLEffect::AddPass(COGLShader *pShader_)
	{
		IEffect::AddPass(new COGLEffectPass(this, pShader_));
	}

	/**
	 * 
	 */
	COGLShader * COGLEffect::GetShader() const
	{
		return m_pShader;
	}

} // namespace CasaEngine
